import { translateTitle } from '@/utils/i18n'
const AppApiPage = {
  search: {
    form: {
      method: 'dams.handle.flow.query',
      name: 'search',
      field: [
        {
          type: 'input',
          name: 'API_NAME',
          label: translateTitle('Dams.ApplicationInterface.接口名称'),
          labelHidden: true,
          placeholder: translateTitle('Dams.ApplicationInterface.接口名称'),
        },
        {
          type: 'input',
          name: 'API_CN_DESC',
          label: translateTitle('Dams.ApplicationInterface.接口中文描述'),
          labelHidden: true,
          placeholder: translateTitle('Dams.ApplicationInterface.接口中文描述'),
        },
        {
          type: 'select',
          name: 'SUB_SYSTEM',
          label: translateTitle('Dams.ApplicationInterface.所属子系统'),
          options: [],
          filterable: true,
        },
        {
          type: 'select',
          name: 'IS_STANDRAD_API',
          label: translateTitle('Dams.ApplicationInterface.是否标准接口'),
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
          ],
        },
        {
          type: 'button',
          label: translateTitle('Dams.ApplicationInterface.查询'),
          labelHidden: true,
        },
      ],
    },
  },
  dialog: {
    form: {
      api: '',
      name: 'dialog',
      field: [
        {
          type: 'line',
          label: translateTitle('Dams.ApplicationInterface.接口基础信息配置'),
          labelHidden: true,
        },
        {
          type: 'checkbox',
          name: 'ID',
          label: '',
          hidden: true,
        },
        {
          type: 'input',
          name: 'ID',
          label: translateTitle('Dams.ApplicationInterface.流水号主键'),
          disabled_add: true,
          disabled_edit: true,
        },
        {
          type: 'select',
          name: 'type',
          label: translateTitle('Dams.ApplicationInterface.模板'),
          disabled_edit: true,
          tableHidden: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.接口查询模板'),
              CODE: '*.standard.query.templ',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.接口增删改模板'),
              CODE: '*.standard.cud.templ',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.接口SP调用模板'),
              CODE: '*.standard.sp.templ',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.接口EXCEL导入模板'),
              CODE: '*.standard.excel.import.templ',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.接口EXCEL导出模板'),
              CODE: '*.standard.excel.export.templ',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.接口文件上传模板'),
              CODE: '*.standard.file.upload.templ',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.接口文件下载模板'),
              CODE: '*.standard.file.download.templ',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.接口excel模板文件下载模板'),
              CODE: '*.standard.excel.templ.download',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.接口excel静态数据导出模板'),
              CODE: '*.standard.excel.static.data.export',
            },
          ],
        },
        {
          type: 'input',
          name: 'API_NAME',
          label: translateTitle('Dams.ApplicationInterface.接口名称'),
          disabled_add: false,
          disabled_edit: true,
          isRules: true,
          slotContent: translateTitle('Dams.ApplicationInterface.以系统名称开头英文分割'),
          slot: true,
        },
        {
          type: 'input',
          name: 'API_CN_DESC',
          label: translateTitle('Dams.ApplicationInterface.接口中文描述'),
          isRules: true,
        },
        {
          type: 'input',
          name: 'API_EN_DESC',
          label: translateTitle('Dams.ApplicationInterface.接口英文描述'),
          isRules: true,
        },
        {
          type: 'input',
          name: 'API_MSG_LOG_SAVE_TIME',
          label: translateTitle('Dams.ApplicationInterface.接口消息日志存有效期单位小时'),
          value: '1',
          isRules: true,
        },
        {
          type: 'select',
          name: 'API_TRANSACTION_LV',
          label: translateTitle('Dams.ApplicationInterface.接口消息事务级别'),
          isFixed: true,
          isRules: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.批量'),
              CODE: 'BATCH',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.单个'),
              CODE: 'SINGLE',
            },
          ],
        },
        {
          type: 'select',
          name: 'SUB_SYSTEM',
          label: translateTitle('Dams.ApplicationInterface.所属子系统'),
          isRules: true,
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'input',
          name: 'SUB_SYSTEM_SERVER',
          label: translateTitle('Dams.ApplicationInterface.所属子系统服务名'),
        },
        {
          type: 'input',
          name: 'SUB_SYSTEM_MODULE_ID',
          label: translateTitle('Dams.ApplicationInterface.所属子系统服模块id'),
        },
        {
          type: 'select',
          name: 'IS_STANDRAD_API',
          label: translateTitle('Dams.ApplicationInterface.是否标准接口'),
          value: 'Y',
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
          ],
        },
        {
          type: 'line',
          label: translateTitle('Dams.ApplicationInterface.接口流程处理配置'),
          labelHidden: true,
        },
        {
          type: 'select',
          name: 'API_DOMSG',
          label: translateTitle('Dams.ApplicationInterface.接口入口'),
          isRules: true,
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'select',
          name: 'API_MSG_VALIDATOR',
          label: translateTitle('Dams.ApplicationInterface.接口消息校验器'),
          isRules: true,
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'select',
          name: 'API_IDEMPOTENT_ENABLE',
          label: translateTitle('Dams.ApplicationInterface.是否开启接口幂等性'),
          isRules: true,
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
          ],
        },
        {
          type: 'select',
          name: 'API_MSG_ANALYSER',
          label: translateTitle('Dams.ApplicationInterface.接口报文解析器'),
          isRules: true,
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'select',
          name: 'IS_ENABLE_JS_VERIF',
          label: translateTitle('Dams.ApplicationInterface.是否开启JS验证'),
          isRules: true,
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
          ],
        },
        {
          type: 'select',
          name: 'API_MSG_BODY_MUST',
          label: translateTitle('Dams.ApplicationInterface.接口报文BODY是否必须'),
          isRules: true,
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
          ],
        },
        {
          type: 'input',
          name: 'API_MSG_BODY_FIELD',
          label: translateTitle('Dams.ApplicationInterface.接口报文BODY字段'),
        },
        {
          type: 'select',
          name: 'API_MSG_EXTRACTOR',
          label: translateTitle('Dams.ApplicationInterface.接口报文字段提取器'),
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'select',
          name: 'API_MSG_NODE_DOACTION',
          label: translateTitle('Dams.ApplicationInterface.接口报文节点处理器'),
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'select',
          name: 'API_MSG_FIELD_VALIDATOR',
          label: translateTitle('Dams.ApplicationInterface.接口消息字段校验器'),
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'select',
          name: 'API_MSG_FIELD_UTILS',
          label: translateTitle('Dams.ApplicationInterface.接口消息字段验证工具'),
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'select',
          name: 'API_MSG_DATA_FILL',
          label: translateTitle('Dams.ApplicationInterface.接口消息填充器'),
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'select',
          name: 'API_MSG_DOBIZLOGIC',
          label: translateTitle('Dams.ApplicationInterface.接口消息逻辑处理器'),
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'select',
          name: 'API_MSG_DAO',
          label: translateTitle('Dams.ApplicationInterface.接口消息DAO层处理器'),
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'line',
          label: translateTitle('Dams.ApplicationInterface.接口文件上传下载或者三方接口配置'),
          labelHidden: true,
        },
        {
          type: 'select',
          name: 'FILE_LEAVEMARK_ENABLE',
          label: translateTitle('Dams.ApplicationInterface.是否开启文件上传下载留痕'),
          isFixed: true,
          isRules: true,
          slotContent: translateTitle('Dams.ApplicationInterface.如果选择是'),
          slot: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
          ],
        },
        {
          type: 'input',
          name: 'FILE_SERVER_IP',
          label: translateTitle('Dams.ApplicationInterface.文件或者三方接口服务器地址'),
        },
        {
          type: 'input',
          name: 'FILE_SERVER_PORT',
          label: translateTitle('Dams.ApplicationInterface.文件或者三方接口服务器端口'),
        },
        {
          type: 'input',
          name: 'FILE_SERVER_USER',
          label: translateTitle('Dams.ApplicationInterface.文件或者三方接口服务器用户名'),
        },
        {
          type: 'input',
          name: 'FILE_SERVER_PASS',
          label: translateTitle('Dams.ApplicationInterface.文件或者三方接口服务器密码'),
        },
        {
          type: 'input',
          name: 'FILE_SAVE_ROOT_PATH',
          label: translateTitle('Dams.ApplicationInterface.文件或者三方接口跟路径'),
        },
        {
          type: 'select',
          name: 'FILE_TYPE',
          label: translateTitle('Dams.ApplicationInterface.文件类型'),
          isMultiple: true,
        },
        {
          type: 'select',
          name: 'FILE_SERVER_TYPE',
          label: translateTitle('Dams.ApplicationInterface.文件服务器类型'),
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.本地'),
              CODE: 'LOCAL',
            },
            {
              LABEL: 'FTP',
              CODE: 'FTP',
            },
            {
              LABEL: 'SFTP',
              CODE: 'SFTP',
            },
          ],
        },
        {
          type: 'select',
          name: 'FILE_SAVE_PATH_TYPE',
          label: translateTitle('Dams.ApplicationInterface.文件保存路径格式'),
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.年月日时'),
              CODE: 'yyyy/MM/dd/HH',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.年月日'),
              CODE: 'yyyy/MM/dd',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.年月日时分'),
              CODE: 'yyyy/MM/dd/HH/mm',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.年月日时分秒'),
              CODE: 'yyyy/MM/dd/HH/mm/ss',
            },
          ],
        },
        {
          type: 'input',
          name: 'FILE_FULL_TPL_PATH',
          label: translateTitle('Dams.ApplicationInterface.模板文件路径和名称'),
        },
        {
          type: 'input',
          name: 'FILE_LEAVEMARK_TIMEOUT',
          label: translateTitle('Dams.ApplicationInterface.模板文件路径和名称'),
        },
        {
          type: 'line',
          label: translateTitle('Dams.ApplicationInterface.接口响应处理配置'),
          labelHidden: true,
        },
        {
          type: 'select',
          name: 'API_AUTO_RETRUN_MSG',
          label: translateTitle('Dams.ApplicationInterface.接口返回消息自动响应'),
          isFixed: true,
          isRules: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
          ],
        },
        {
          type: 'select',
          name: 'API_RETURN_MSG_BEAN',
          label: translateTitle('Dams.ApplicationInterface.接口响应消息处理器'),
          isRules: true,
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'input',
          name: 'ADD_USER_NAME',
          label: translateTitle('Dams.ApplicationInterface.新增用户id'),
          hidden: true,
        },
        {
          type: 'input',
          name: 'ADD_DATE_TIME',
          label: translateTitle('Dams.ApplicationInterface.新增时间'),
          hidden: true,
        },
        {
          type: 'input',
          name: 'EDIT_DATE_TIME',
          label: translateTitle('Dams.ApplicationInterface.修改时间'),
          hidden: true,
        },
        {
          type: 'input',
          name: 'EDIT_USER_NAME',
          label: translateTitle('Dams.ApplicationInterface.修改用户id'),
          disabled: true,
        },
        {
          type: 'select',
          name: 'API_MSG_CRYPT_UTIL',
          label: translateTitle('Dams.ApplicationInterface.接口消息加密工具'),
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'select',
          name: 'API_RESPONSE_POSTOR',
          label: translateTitle('Dams.ApplicationInterface.接口消息响应增强器'),
          options: [
            {
              label: 'Y',
              value: 'Y',
            },
            {
              label: 'N',
              value: 'N',
            },
          ],
        },
        {
          type: 'input',
          name: 'API_QUERY_AFTER_BANE',
          label: translateTitle('Dams.ApplicationInterface.查询后置BEAN'),
        },
        {
          type: 'line',
          label: translateTitle('Dams.ApplicationInterface.JS报文处理'),
          labelHidden: true,
        },
        {
          type: 'textarea',
          name: 'API_DO_MSG_JS_SCRIPT',
          label: translateTitle('Dams.ApplicationInterface.JS脚本'),
        },
        {
          type: 'textarea',
          name: 'API_QUERY_AFTER_JS',
          label: translateTitle('Dams.ApplicationInterface.查询后置js代码'),
        },
        {
          type: 'button',
          label: translateTitle('Dams.ApplicationInterface.提交'),
          labelHidden: true,
        },
      ],
      fieldMapping: [
        {
          type: 'line',
          label: translateTitle('Dams.ApplicationInterface.报文提取'),
          labelHidden: true,
        },
        {
          type: 'checkbox',
          name: 'ID',
          label: '',
          hidden: true,
        },
        {
          type: 'input',
          name: 'ID',
          label: translateTitle('Dams.ApplicationInterface.流水号主键ID'),
          disabled_add: true,
          disabled_edit: true,
        },
        {
          type: 'input',
          name: 'API_NAME',
          label: translateTitle('Dams.ApplicationInterface.接口名称'),
          disabled_add: true,
          disabled_edit: true,
        },
        {
          type: 'select',
          name: 'SUB_SYSTEM',
          isRules: true,
          label: translateTitle('Dams.ApplicationInterface.所属子系统'),
        },
        {
          type: 'input',
          name: 'MSG_DATA_ID',
          isRules: true,
          label: translateTitle('Dams.ApplicationInterface.提取后的报文数据ID'),
        },
        {
          type: 'input',
          name: 'SQL_CHILDREN_ID',
          label: translateTitle('Dams.ApplicationInterface.所属于头部子报文数据ID'),
        },
        {
          type: 'select',
          name: 'EXTRACT_ALL_FILEDS',
          label: translateTitle('Dams.ApplicationInterface.是否提取所有字段'),
          isRules: true,
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
          ],
        },

        {
          type: 'select',
          name: 'IS_HEADER',
          label: translateTitle('Dams.ApplicationInterface.是否为单头'),
          isRules: true,
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
          ],
        },
        {
          type: 'input',
          name: 'DAO_DATA_FILL',
          label: translateTitle('Dams.ApplicationInterface.数据填充JAVA'),
        },
        {
          type: 'textarea',
          name: 'SQL_FIELD_EXTRACT_EXP',
          label: translateTitle('Dams.ApplicationInterface.报文提取表达式'),
          isRules: true,
          value: 'data',
        },

        {
          type: 'textarea',
          name: 'MSG_FIELD_NAME',
          label: translateTitle('Dams.ApplicationInterface.提取报文的字段名'),
          isRules: true,
          value: '*',
        },
        {
          type: 'line',
          label: translateTitle('Dams.ApplicationInterface.SQL配置'),
          key: 'sqlConfig',
          labelHidden: true,
        },
        {
          type: 'select',
          name: 'SQL_TYPE',
          label: translateTitle('Dams.ApplicationInterface.SQL执行类型'),
          isRules: true,
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.插入'),
              CODE: 'INSERT',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.删除'),
              CODE: 'DELETE',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.更新'),
              CODE: 'UPDATE',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.查询'),
              CODE: 'SELECT',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.存储过程'),
              CODE: 'SP',
            },
          ],
        },
        {
          type: 'input',
          name: 'EXEC_SEQ',
          label: translateTitle('Dams.ApplicationInterface.SQL执行顺序'),
          isRules: true,
          value: '0',
        },
        {
          type: 'input',
          name: 'DAO_SP_NAME',
          label: translateTitle('Dams.ApplicationInterface.SP名称'),
        },
        {
          type: 'select',
          name: 'DAO_INSERT_SQL_RULE',
          label: translateTitle('Dams.ApplicationInterface.SQL执行规则'),
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.先删后插'),
              CODE: 'DELETE_INSERT',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.更新'),
              CODE: 'UPDATE',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.追加'),
              CODE: 'ADD',
            },
          ],
        },
        {
          type: 'select',
          name: 'SQL_ROWS_MUST_TRUE',
          label: translateTitle('Dams.ApplicationInterface.SQL受影响行是否大于0'),
          isRules: true,
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
          ],
        },
        {
          type: 'input',
          name: 'DB_ID',
          isRules: true,
          label: translateTitle('Dams.ApplicationInterface.数据源ID'),
        },
        {
          type: 'input',
          name: 'TABLE_NAME',
          isRules: true,
          label: translateTitle('Dams.ApplicationInterface.数据库表名'),
        },

        {
          type: 'select',
          name: 'ON_DEMAND_FIELD',
          label: translateTitle('Dams.ApplicationInterface.SQL字段是否按需加载'),
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
          ],
        },
        {
          type: 'textarea',
          name: 'NATIVE_SQL',
          label: translateTitle('Dams.ApplicationInterface.SQL公共原生SQL语句'),
          hidden: true,
          isAppCheck: true,
          isSqlTest: true,
          slot: true,
          helpSlot: true,
          slotContent: '',
        },
        {
          type: 'textarea',
          name: 'NATIVE_SQL_MYSQL',
          label: translateTitle('Dams.ApplicationInterface.SQLMYSQL原生SQL语句'),
          hidden: true,
          isAppCheck: true,
          isSqlTest: true,
        },
        {
          type: 'textarea',
          name: 'NATIVE_SQL_ORACLE',
          label: translateTitle('Dams.ApplicationInterface.SQLORACLE原生SQL语句'),
          hidden: true,
          isAppCheck: true,
          isSqlTest: true,
        },
        {
          type: 'textarea',
          name: 'NATIVE_SQL_SQLSERVER',
          label: translateTitle('Dams.ApplicationInterface.SQLSQLSERVER原生SQL语句'),
          hidden: true,
          isAppCheck: true,
          isSqlTest: true,
        },

        {
          type: 'textarea',
          name: 'SQL_FIELD',
          label: translateTitle('Dams.ApplicationInterface.SQL字段名'),
          hidden: true,
          isSqlTest: true,
          isAppCheck: true,
        },
        {
          type: 'textarea',
          name: 'SQL_JOIN',
          label: translateTitle('Dams.ApplicationInterface.SQLJOIN条件'),
          hidden: true,
          isSqlTest: true,
        },
        {
          type: 'textarea',
          name: 'SQL_WHERE',
          label: translateTitle('Dams.ApplicationInterface.SQLWHERE条件'),
          hidden: true,
          isAppCheck: true,
          isSqlTest: true,
        },
        {
          type: 'textarea',
          name: 'PRIMARY_KEY_FIELD',
          label: translateTitle('Dams.ApplicationInterface.SQL主键'),
          hidden: true,
          isAppCheck: true,
          isSqlTest: true,
        },
        {
          type: 'textarea',
          name: 'SQL_ORDER_BY',
          label: translateTitle('Dams.ApplicationInterface.SQL排序条件'),
          hidden: true,
          isAppCheck: true,
          isSqlTest: true,
        },
        {
          type: 'textarea_in_out',
          name: 'DAO_SP_PARAMS_IN',
          isAppCheck: true,
          hidden: true,
          label: translateTitle('Dams.ApplicationInterface.SP入参'),
          isSqlTest: true,
        },
        {
          type: 'textarea_in_out',
          name: 'DAO_SP_PARAMS_OUT',
          isAppCheck: true,
          hidden: true,
          label: translateTitle('Dams.ApplicationInterface.SP出参'),
          isSqlTest: true,
        },
        {
          type: 'button',
          label: translateTitle('Dams.ApplicationInterface.校验SQL'),
          labelHidden: true,
        },
        {
          type: 'line',
          label: translateTitle('Dams.ApplicationInterface.前后置配置'),
          labelHidden: true,
        },
        {
          type: 'select',
          name: 'DAO_BEFORE_TS_MODE',
          label: translateTitle('Dams.ApplicationInterface.前置事务'),
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.事务内'),
              CODE: 'IN',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.事务外'),
              CODE: 'OUT',
            },
          ],
        },
        {
          type: 'select',
          name: 'DAO_AFTER_TS_MODE',
          label: translateTitle('Dams.ApplicationInterface.后置事务'),
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.事务内'),
              CODE: 'IN',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.事务外'),
              CODE: 'OUT',
            },
          ],
        },
        {
          type: 'input',
          name: 'DAO_AFTER_BEAN',
          label: translateTitle('Dams.ApplicationInterface.后置JAVABEANNAME'),
        },
        {
          type: 'input',
          name: 'DAO_BEFORE_BEAN',
          label: translateTitle('Dams.ApplicationInterface.前置JAVABEANNAME'),
        },
        {
          type: 'input',
          name: 'DAO_BEFORE_SP_NAME',
          label: translateTitle('Dams.ApplicationInterface.前置SP名称'),
        },
        {
          type: 'input',
          name: 'DAO_AFTER_SP_NAME',
          label: translateTitle('Dams.ApplicationInterface.后置SP名称'),
        },
        {
          type: 'select',
          name: 'ENABLE_BEFORE_SP_LOOP_CALL',
          label: translateTitle('Dams.ApplicationInterface.前置SP是否循环调用'),
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
          ],
        },
        {
          type: 'select',
          name: 'ENABLE_AFTER_SP_LOOP_CALL',
          label: translateTitle('Dams.ApplicationInterface.后置SP是否循环调用'),
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
          ],
        },
        {
          type: 'textarea',
          name: 'DAO_BEFORE_SP_PARAMS',
          label: translateTitle('Dams.ApplicationInterface.前置SP参数'),
        },
        {
          type: 'textarea',
          name: 'DAO_AFTER_SP_PARAMS',
          label: translateTitle('Dams.ApplicationInterface.后置SP参数'),
        },
        {
          type: 'textarea',
          name: 'JS_CODE',
          label: translateTitle('Dams.ApplicationInterface.JS代码验证'),
          slot: true,
          slotContent: '',
        },
        {
          type: 'textarea',
          name: 'REMARK',
          label: translateTitle('Dams.ApplicationInterface.备注'),
        },
        {
          type: 'input',
          name: 'ADD_USER_ID',
          label: translateTitle('Dams.ApplicationInterface.添加用户ID'),
          hidden: true,
        },
        {
          type: 'input',
          name: 'ADD_DATE_TIME',
          label: translateTitle('Dams.ApplicationInterface.添加时间'),
          hidden: true,
        },
        {
          type: 'input',
          name: 'EDIT_DATE_TIME',
          label: translateTitle('Dams.ApplicationInterface.修改时间'),
          hidden: true,
        },
        {
          type: 'input',
          name: 'EDIT_USER_ID',
          label: translateTitle('Dams.ApplicationInterface.修改用户ID'),
          hidden: true,
        },
        {
          type: 'button',
          label: translateTitle('Dams.ApplicationInterface.提交'),
          labelHidden: true,
        },
      ],
      fieldMapping3: [
        {
          type: 'checkbox',
          name: 'ID',
          label: '',
          hidden: true,
        },
        {
          type: 'input',
          name: 'ID',
          label: translateTitle('Dams.ApplicationInterface.流水号主键ID'),
          disabled_add: true,
          disabled_edit: true,
        },
        {
          type: 'input',
          name: 'MSG_DATA_ID',
          label: translateTitle('Dams.ApplicationInterface.追加原报文ID'),
        },
        {
          type: 'textarea',
          name: 'SQL_FIELD_EXTRACT_EXP',
          label: translateTitle('Dams.ApplicationInterface.报文提取表达式'),
        },
        {
          type: 'textarea',
          name: 'MSG_FIELD_NAME',
          label: translateTitle('Dams.ApplicationInterface.提取字段名'),
        },
        {
          type: 'input',
          name: 'API_NAME',
          label: translateTitle('Dams.ApplicationInterface.接口名称'),
        },
        {
          type: 'select',
          name: 'SUB_SYSTEM',
          label: translateTitle('Dams.ApplicationInterface.所属子系统'),
        },
        {
          type: 'select',
          name: 'EXTRACT_ALL_FILEDS',
          label: translateTitle('Dams.ApplicationInterface.是否提取所有字段'),
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
          ],
        },
        {
          type: 'select',
          name: 'IS_HEADER',
          label: translateTitle('Dams.ApplicationInterface.是否为单头'),
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
          ],
        },
        {
          type: 'input',
          name: 'ADD_USER_ID',
          label: translateTitle('Dams.ApplicationInterface.添加用户ID'),
        },
        {
          type: 'input',
          name: 'ADD_DATE_TIME',
          label: translateTitle('Dams.ApplicationInterface.添加时间'),
        },
        {
          type: 'input',
          name: 'EDIT_DATE_TIME',
          label: translateTitle('Dams.ApplicationInterface.修改时间'),
        },
        {
          type: 'input',
          name: 'EDIT_USER_ID',
          label: translateTitle('Dams.ApplicationInterface.修改用户ID'),
        },

        {
          type: 'button',
          label: translateTitle('Dams.ApplicationInterface.提交'),
          labelHidden: true,
        },
      ],
      fieldMapping4: [
        {
          type: 'checkbox',
          name: 'ID',
          label: '',
          hidden: true,
        },
        {
          type: 'input',
          name: 'ID',
          label: translateTitle('Dams.ApplicationInterface.流水号主键ID'),
          disabled_add: true,
          disabled_edit: true,
        },
        {
          type: 'input',
          name: 'FROM_FIELD_NAME',
          isRules: true,
          label: translateTitle('Dams.ApplicationInterface.来源字段'),
        },
        {
          type: 'input',
          name: 'TO_FIELD_NAME',
          isRules: true,
          label: translateTitle('Dams.ApplicationInterface.目标字段'),
        },
        {
          type: 'select',
          name: 'SKIP_EMPTY_VALUE_VERIF',
          isRules: true,
          label: translateTitle('Dams.ApplicationInterface.是否值为空跳过校验'),
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
          ],
          value: 'N',
        },
        {
          type: 'textarea',
          name: 'VERIF_FUNCTION',
          label: translateTitle('Dams.ApplicationInterface.校验函数'),
        },
        {
          type: 'textarea',
          name: 'SQL_VERIF_SQL_TXT',
          label: translateTitle('Dams.ApplicationInterface.SQL校验语句'),
        },
        {
          type: 'input',
          name: 'EXEC_SEQ',
          label: translateTitle('Dams.ApplicationInterface.校验顺序'),
          isRules: true,
          value: '0',
        },
        {
          type: 'input',
          name: 'LINE_OFFSET_NUMBER',
          label: translateTitle('Dams.ApplicationInterface.数据偏移行号'),
          isRules: true,
          value: '0',
        },
        {
          type: 'select',
          name: 'FIELD_DATA_TYPE',
          label: translateTitle('Dams.ApplicationInterface.数据类型'),
        },
        {
          type: 'input',
          name: 'API_NAME',
          isRules: true,
          label: translateTitle('Dams.ApplicationInterface.接口名称'),
        },
        {
          type: 'select',
          name: 'SUB_SYSTEM',
          isRules: true,
          label: translateTitle('Dams.ApplicationInterface.所属子系统'),
        },
        {
          type: 'select',
          name: 'IS_RETURN_FIELD',
          label: translateTitle('Dams.ApplicationInterface.是否为消息返回字段'),
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
          ],
        },
        {
          type: 'input',
          name: 'MSG_DATA_ID',
          isRules: true,
          label: translateTitle('Dams.ApplicationInterface.提取后的报文数据ID'),
        },

        {
          type: 'input',
          name: 'SQL_VERIF_FAIL_DESC',
          label: translateTitle('Dams.ApplicationInterface.SQL校验错误描述'),
          hidden: true,
          isAppCheck: true,
        },
        {
          type: 'input',
          name: 'SQL_VERIF_DB_ID',
          label: translateTitle('Dams.ApplicationInterface.SQL校验数据源ID'),
        },
        {
          type: 'input',
          name: 'SQL_VERIF_FAIL_CODE',
          label: translateTitle('Dams.ApplicationInterface.SQL校验失败错误代码'),
        },
        {
          type: 'select',
          name: 'SQL_VERIF_QUERY_ROWS',
          label: translateTitle('Dams.ApplicationInterface.SQL是否查询出数据报错'),
          isFixed: true,
          options: [
            {
              LABEL: translateTitle('Dams.ApplicationInterface.否'),
              CODE: 'N',
            },
            {
              LABEL: translateTitle('Dams.ApplicationInterface.是'),
              CODE: 'Y',
            },
          ],
        },
        {
          type: 'input',
          name: 'FIELD_EN_DESC',
          label: translateTitle('Dams.ApplicationInterface.字段英文描述'),
        },
        {
          type: 'input',
          name: 'FIELD_CN_DESC',
          label: translateTitle('Dams.ApplicationInterface.字段中文描述'),
        },

        {
          type: 'input',
          name: 'ADD_USER_ID',
          label: translateTitle('Dams.ApplicationInterface.添加用户ID'),
        },
        {
          type: 'input',
          name: 'ADD_DATE_TIME',
          label: translateTitle('Dams.ApplicationInterface.添加时间'),
        },
        {
          type: 'input',
          name: 'EDIT_DATE_TIME',
          label: translateTitle('Dams.ApplicationInterface.修改时间'),
        },
        {
          type: 'input',
          name: 'EDIT_USER_ID',
          label: translateTitle('Dams.ApplicationInterface.修改用户ID'),
        },

        {
          type: 'button',
          label: translateTitle('Dams.ApplicationInterface.提交'),
          labelHidden: true,
        },
      ],
    },
  },
}

export default AppApiPage
